﻿package com.codingbros.fireworks 
{
	
	/**
	 * ...
	 * @author ...
	 */
	
	import flash.display.MovieClip;
	import flash.display.Sprite;
	
	import flash.geom.Point;
	
	import com.codingbros.fireworks.particles.ParticlesView;
	 
	[SWF( backgroundColor = '0x000000', frameRate = '30', width = '500', height = '500')]
	
	public class Fireworks extends Sprite
	{
		private const WIDTH:int=500;
		private const HEIGHT:int=500;
		private const CENTER:Point = new Point(WIDTH / 2, HEIGHT / 2);
		
		private const GRAPHICSCENTER:int = 100;
		
		private var particles:ParticlesView;

		private var logo:MovieClip;
		
		public function Fireworks() 
		{
			stage.frameRate = 25; //44.444;	
			
			particles = new ParticlesView(CENTER, 50);
			this.addChild(particles);		

			logo = new Logo();
			logo.x=CENTER.x;
			logo.y=CENTER.y;
			logo.width = logo.width / 2;
			logo.height = logo.height / 2;
			addChild(logo);			
		}		
	}	
}